# -*- coding: utf-8 -*-

"""
@author: l
@Remark: 	
	
设备关系表管理
"""
from app.device.models import DDL
from dvadmin.utils.serializers import CustomModelSerializer
from dvadmin.utils.viewset import CustomModelViewSet


class DDLSerializer(CustomModelSerializer):
    """
    序列化器
    """

    class Meta:
        model = DDL
        fields = "__all__"
        read_only_fields = ["id"]


class DDLViewSet(CustomModelViewSet):
    """
    	
    设备关系表接口
    list:设备关系表查询
    create:设备关系表新增
    update:设备关系表修改
    retrieve:设备关系表单例
    destroy:设备关系表删除
    multiple_delete:设备关系表多删
    """
    queryset = DDL.objects.all()
    serializer_class = DDLSerializer
    # filter_fields = ['creator_id']

    # permission_classes = []
